﻿Imports System.Web
Imports System.ComponentModel

<AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
<Description("Possibilita efetuar uma venda através do Gateway de Pagamentos Cobre Direto")>
<Designer(GetType(VendaDesigner))>
Public Class Venda
    Inherits System.Web.UI.Control

    Private mobjPedido As Pedido
    Private mstrUrlRetornoCampainha As String = String.Empty
    Private mstrUrlSucesso As String = String.Empty
    Private mstrUrlErro As String = String.Empty


    Public Sub New()

    End Sub

    Public Property Pedido As Pedido
        Get
            Return mobjPedido
        End Get
        Set(ByVal value As Pedido)
            mobjPedido = value
        End Set
    End Property

    Public Property UrlCampainha As String
        Get
            Return mstrUrlRetornoCampainha
        End Get
        Set(ByVal value As String)
            mstrUrlRetornoCampainha = value
        End Set
    End Property

    Public Property UrlSucesso As String
        Get
            Return mstrUrlSucesso
        End Get
        Set(ByVal value As String)
            mstrUrlSucesso = value
        End Set
    End Property

    Public Property UrlErro As String
        Get
            Return mstrUrlErro
        End Get
        Set(ByVal value As String)
            mstrUrlErro = value
        End Set
    End Property

End Class
